public class Expectionde {
  static  int test(){
      int x = 10 ;
      try{
          x = 20 ;
          System.out.println(10/0);
          return x;
      }catch (Exception e){
          x = 30 ;
          return x ;//return 返回当时的值
      }finally{
          x=40;
      }

    }
    public static void main(String[] args) {
        System.out.println(test());
    }
}
